package cc.yiueil.flowable6boot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping(value = "/base")
public class BaseController {
    static Map<String, Object> userList;
    static {
        userList = new HashMap<>();
        userList.put("张三", "张三是一个人");
    }



    @GetMapping(value = "/userList")
    public Map<String, Object> getUserList() {
        return userList;
    }
}
